<?php echo $this->doctype(); ?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
	<?php echo $this->headMeta(); ?>
	<?php echo $this->headTitle(); ?>
	<?php echo $this->headStyle(); ?>
	<?php echo $this->headLink(); ?>
	<?php echo $this->headScript(); ?>
</head>
<body style="overflow:hidden">
<div class="loginWrapper">
	<div style="clear:both;overflow:hidden;">
    	<form id="login" action="<?php echo $this->escape($this->form->getAction()); ?>" method="<?php echo $this->escape($this->form->getMethod());?>">
        	<div>
            	<?php
            	if (isset($this->messages['error'])){ 
            	    $errors = $this->messages['error'];
            	    $errorMsgs = implode('</i18n><br/><i18n>', $errors);
                    if ('' != $errorMsgs) {
                        $errorMsgs = '<i18n>' . $errorMsgs . '</i18n>';
                    }
            	}
            	?>
    			<table border='0' cellpadding='5px'>
    				<tr>
        				<td colspan="2"><h2><i18n>ADM-01_login</i18n></h2></td>
        			</tr>
    				<?php if ('' != $errorMsgs) { ?>
    				<tr>
        				<td colspan="2"><span style="color:red"><?php echo $errorMsgs;?></span></td>
    				</tr>
    				<?php } ?>
    				<tr>
    					<td><i18n>ADM-01_login_name</i18n></td>
    					<td><?php echo $this->form->loginName;?></td>
    				</tr>
    				<tr>
    					<td><i18n>ADM-01_password</i18n></td>
    					<td><?php echo $this->form->password;?>	</td>
    				</tr>
    				<tr>
    					<td colspan="2" style="text-align: center;"><input type="submit" value="<i18n>ADM-01_login</i18n>" />
    					&nbsp;&nbsp;<input type="reset" value="<i18n>ADM-01_reset</i18n>" /></td>
    				</tr>
    			</table>
        	</div>
    	</form>
    </div>
</div>
</body>
</html>